5 unsigned long long dp
[1000001];
7 inline unsigned long long cuantosNuevos(unsigned long long n
){
10 if (n
% 2 == 0) return (n
*(n
-2))/4;
11 return cuantosNuevos(n
-1) + (n
-1)/2;
18 for (int i
=5; i
<=1000000; ++i
){
19 dp
[i
] = dp
[i
-1] + cuantosNuevos(i
-1);
21 while (scanf("%d", &n
) == 1 && n
> 2){
22 printf("%llu\n", dp
[n
]);